package com.dhj.jvmstudy.chapter10;

/**
 * 透过字节码指令看代码细节
 */
public class IntegerTest {

    public static void main(String[] args) {
        Integer x = 5;  // 自动装箱
        int y = 5;
        System.out.println(x == y);  // true，有自动拆箱的过程

        Integer i1 = 10;
        Integer i2 = 10;
        System.out.println(i1 == i2); // true

        Integer i3 = 128;
        Integer i4 = 128;
        System.out.println(i3 == i4); // false
    }

}
